import { createRouter, createWebHistory } from 'vue-router'
import MyIndex from '../views/jiazhi/MyIndex.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect:'/login',
      name: 'login',
    },{
      path:'/login',
      component:()=>import('../views/Login/MyLogin.vue')
    },
    {
      path: '/index',
      name: 'home',
      component: MyIndex,
      redirect:'/index/fl',
      children: [
        {path:'/index/gl',component:()=>import('../views/jiazhitwo/PageGuanli.vue')},
        {path:'/index/fl',component:()=>import('../views/jiazhitwo/PageFenlei.vue')},
        {path:'/index/pass',component:()=>import('../views/jiazhitwo/UserPassword.vue')},
        {path:'/index/tx',component:()=>import('../views/jiazhitwo/UserTouxiang.vue')},
        {
          path:'/index/zl',component:()=>import('../views/jiazhitwo/UserZhiliao.vue'),
        }
      ]
    }
  ]
})

export default router
